import {createRouter, createWebHashHistory} from "vue-router";
import Home from "@/views/home.vue";
import hotel from "@/views/hotel.vue";
import travel from "@/views/travel.vue";
import account from "@/views/account.vue";
import login from "@/views/login/index.vue";

const routes = [
  {
    path: "/",
    name: "Home",
    component: Home
  },
  {
    path: "/login",
    name: "login",
    component: login
  },
  {
    path: "/travel",
    name: "travel",
    component: travel
  },
  {
    path: "/hotel",
    name: "hotel",
    component: hotel
  },
  {
    path: "/account",
    name: "account",
    component: account
  }
];

const router = createRouter({
  history: createWebHashHistory(),
  routes
});
export default router;
